<?php
require_once('../includes/user.php');
$user=new User();
	if($_POST['type']=="comp")
	{
		$comp="";
		$comp_res=$user->query("select * from competition where id=1");
		while($comp_row=mysql_fetch_array($comp_res))
		{
			$comp.="".$comp_row['competition'].'::';
		}
		echo $comp;
	}
	else if($_POST['type']=="dept")
	{
		$dept="";
		$dept_res=$user->query("select * from competition where id=2");
		while($dept_row=mysql_fetch_array($dept_res))
		{
			$dept.="".$dept_row['competition'].'::';
		}
		echo $dept;
	}
	else if($_POST['type']=="college")
	{
		$coll="";
		$coll_res=$user->query("select * from competition where id=3");
		while($coll_row=mysql_fetch_array($coll_res))
		{
			$coll.="".$coll_row['competition'].'::';
		}
		echo $coll;
	}
?>